package com.dao;

import com.entity.pojo.Article;
import com.entity.pojo.ArticleType;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ArticleTypeMapper {
    int deleteByPrimaryKey(String typeId);

    int insert(ArticleType record);

    int insertSelective(ArticleType record);

    ArticleType selectByPrimaryKey(String typeId);

    int updateByPrimaryKeySelective(ArticleType record);

    int updateByPrimaryKey(ArticleType record);

    List<ArticleType> findType();
    List<ArticleType> getAll(@Param("start") Integer start, @Param("rows") Integer rows,
                         @Param("newsState") Byte newsState, @Param("newsTitle") String newsTitle);
    int findArticleTotalCount(@Param("newsTitle") String newsTitle,@Param("newsState") Byte newsState);

    List<ArticleType> SelectAll();
}